import { UserRawState } from "./userReducer";

export const LOGIN_SUCCESS = 'LOGIN_SUCCESS';
export const LOGIN_QUIT = 'LOGIN_QUIT'

export interface LoginSuccessAction {
  type: typeof LOGIN_SUCCESS
  payload: UserRawState
}

export interface LoginQuitAction {
  type: typeof LOGIN_QUIT
}

export type UserAction = LoginSuccessAction | LoginQuitAction